<div class="layui-form" lay-filter="form-order" style="padding: 20px 30px 0 0;">
    <script type="text/html" template lay-done="layui.data.sendParams(d.params)"></script>
    <div class="layui-form-item ">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-block">
            <script type="text/html" template>
                <input type="text" name="phone" value="{{ d.params.phone || '0' }}"
                       placeholder="请输入联系电话" class="layui-input" lay-verType="tips" lay-verify="required"/>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">乘车人数</label>
        <div class="layui-input-block">
            <script type="text/html" template>
                <input type="number" name="number" value="{{ d.params.number || '0' }}"
                       placeholder="请输入乘车人数" class="layui-input" min="0" max="1000" lay-verify="number"
                       lay-verType="tips" lay-verify="required"/>
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-order-edit-submit" value="确认"
                   class="layui-btn layui-btn-fluid">
        </div>
    </div>
</div>

<script>
    layui.data.sendParams = function (params) {
        layui.use(['admin', 'form', 'setter', 'table', 'laytpl'], function () {
            var $ = layui.$
                , laytpl = layui.laytpl
                , admin = layui.admin
                , view = layui.view
                , setter = layui.setter
                , table = layui.table;

            var apiUrl = setter.apiUrl;
        })
    };
</script>